package iscript.gameFramework.IsoLibarys.util 
{
	import flash.geom.Rectangle;
	import flash.net.registerClassAlias;
	import flash.utils.ByteArray;
	import iscript.gameFramework.IsoLibarys.data.IsoBaseData;

	public class IsoClone 
	{
		static public function isoSceneGrid(vaule:Object):IsoBaseData 
		{
			 registerClassAlias("IsoBaseData", IsoBaseData);
			 registerClassAlias("Rectangle",  Rectangle);
			 var byte:ByteArray=new ByteArray(); 
				 byte.writeObject(vaule); 
				 byte.position=0; 
				return byte.readObject() as IsoBaseData; 
		}			
	}

}